package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.OrderDto;
import com.itheima.reggie.entity.Orders;

import java.util.List;

public interface OrdersService extends IService<Orders> {
    /**
     * 订单提交
     */
    public void postOrders(Orders orders);

    /**
     * 订单查询
     * @param page  分页页码
     * @param pageSize  分页条数
     * @return
     */
    public Page<OrderDto> showAllOrder(Long page, Long pageSize);

}
